this.visible = this._notificationBox.visible;
}
- _makeNotificationCountText(count, isChat) {
- if (isChat)
- return ngettext('%d new message', '%d new messages', count).format(count);
- else
- return ngettext('%d new notification', '%d new notifications', count).format(count);
- }
-
_makeNotificationSource(source, box) {
let sourceActor = new MessageTray.SourceActor(source, SUMMARY_ICON_SIZE);
box.add_child(sourceActor);
let count = source.unseenCount;
let countLabel = new St.Label({
- text: this._makeNotificationCountText(count, source.isChat),
+ text: `${count}`,
style_class: 'unlock-dialog-notification-count-text',
});
textBox.add(countLabel);
this._showSource(source, obj, obj.sourceBox);
} else {
let count = source.unseenCount;
- obj.countLabel.text = this._makeNotificationCountText(count, source.isChat);
+ obj.countLabel.text = `${count}`;
}
obj.sourceBox.visible = obj.visible && (source.unseenCount > 0);